﻿using System;
using System.ServiceModel;

namespace Framework.Tests.Wcf.Client.ServiceDefinition
{
    public class Contract : IContract
    {
        public Toto Get()
        {
            return new Toto {Name = "pouet"};
        }

        public int Add(int a, int b)
        {
            return a + b;
        }

        public void JustDoIt()
        {
            
        }

        public Toto GetWithFaultContract()
        {
            throw new FaultException<ExceptionDetail>(new ExceptionDetail {Message = "Crash"});
        }

        public Toto GetWithExceptionNotInFaultContract()
        {
            throw new NotImplementedException("Fuck");
        }
    }
}